package com.xsh.opensltest.plugin;

import org.simpleframework.xml.Serializer;
import org.simpleframework.xml.core.Persister;
import com.xsh.opensltest.plugin.AarManifest;

import java.io.File;

public class XmlParser {

    public static AarManifest parseManifest(File xmlFile) throws Exception {
        Serializer serializer = new Persister();
        return serializer.read(AarManifest.class, xmlFile);
    }
}